<?php
/**
 * @version     1.0
 * @package     com_audiencias
 * @copyright  	
 * @license     
 * @author      jorge eduardo
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.keepalive');
JHtml::_('formbehavior.chosen', 'select');

?>
<script type="text/javascript">
	Joomla.submitbutton = function(task)
	{
		if (task == 'audienciapublica.cancel' || document.formvalidator.isValid(document.id('edit-form'))) {
			Joomla.submitform(task, document.getElementById('edit-form'));
		}
		else {
			alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
		}
	}
</script>

<form action="<?php echo JRoute::_('index.php?option=com_audiencias&layout=edit&id='.(int) $this->item->id); ?>" method="post" enctype="multipart/form-data" name="adminForm" id="edit-form" class="form-validate">
	<div class="form-horizontal">
		<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'details')); ?>   	   	
   			<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'details', JText::_('COM_AUDIENCIAS_FORM_AUDIENCIAS_DETAILS', true)); ?>   	
   				<div class="row-fluid">
					<div class="span9">
						<div class="form-vertical">
							<?php echo $this->form->getControlGroup('titulo'); ?>
							<?php echo $this->form->getControlGroup('requerimento'); ?>
							<?php echo $this->form->getControlGroup('created'); ?>
							
							<fieldset class="adminform">
								<?php echo $this->form->getControlGroup('conteudo'); ?>
							</fieldset>
					<?php echo JLayoutHelper::render('joomla.edit.metadata', $this); ?>
    					</div>
    				</div>
    			</div>   		
    		<?php echo JHtml::_('bootstrap.endTab'); ?>        
    
		   			
		<?php echo JHtml::_('bootstrap.endTabSet'); ?>
   
            
        <input type="hidden" name="task" value="" />
        <?php echo JHtml::_('form.token'); ?>

    </div>
		
		
		
</form>